package com.chengfei.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chengfei.mp.entity.User;

/**
 * 用户mapper
 * @author chengfei5
 * @date 2018/9/19
 *
 * mapper接口
 * 基于mybatis：在mapper中编写CRUD相关的方法，提供mapper接口所对应的sql映射文件，以及方法对应的sql语句
 *
 * 基于Mp：让xxxMapper接口继承BaseMapper接口即可
 *         泛型值得是对应的实体类
 */
public interface UserMapper extends BaseMapper<User>{
    //返回主键
    //<insert userGeneratedKeys = "true" keyProperty = "id"></insert>
}
